package com.zhaoye.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author feng
 * @Date 2021/11/12 10:16
 */
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping(value="/payment/zk")
    public String paymentZk(){
       return "springcloud with zookeeper" + serverPort + "\t" + UUID.randomUUID().toString();
    }
}
